get_filename_component(tarName ${CMAKE_CURRENT_SOURCE_DIR} NAME)

add_compile_definitions(appName="${CMAKE_PROJECT_NAME}_${tarName}")

file(GLOB_RECURSE files *.h *.hpp *.cpp *.c)

add_executable(${tarName} ${files})
target_include_directories(${tarName} PUBLIC . ${sharedPath})
target_link_libraries(${tarName} PUBLIC
    Qt::Core
)
